﻿@using Coslen.Framework.Helpers
@model Coslen.TahorCRM.Domain.Entities.ViewModels.Editing.ContactRelationshipEditViewModel

@{
    ViewBag.Title = "Delete";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>ContactRelationship</legend>

	@Html.Partial("_DetailsOrDelete", Model)
    
	@Html.HiddenFor(model => model.source)
	@Html.HiddenFor(model => model.sourceUrl)

</fieldset>
@using (Html.BeginForm())
{
    <p>
        
       @if (!string.IsNullOrWhiteSpace(Model.source))
       {          
         
            @Html.DeleteOrCancelSet(Model.sourceUrl)
        
       }
       else
       {
           <text>
        <input type="submit" value="Delete" /> |
           </text>
           @Html.ActionLink("Back to List", "Index")
       }
    </p>
}
